"use strict";
const common_vendor = require("../../../../../common/vendor.js");
if (!Array) {
  const _easycom_u_textarea2 = common_vendor.resolveComponent("u-textarea");
  const _easycom_u_form_item2 = common_vendor.resolveComponent("u-form-item");
  const _easycom_u_button2 = common_vendor.resolveComponent("u-button");
  const _easycom_u_form2 = common_vendor.resolveComponent("u-form");
  (_easycom_u_textarea2 + _easycom_u_form_item2 + _easycom_u_button2 + _easycom_u_form2)();
}
const _easycom_u_textarea = () => "../../../../../node-modules/uview-plus/components/u-textarea/u-textarea.js";
const _easycom_u_form_item = () => "../../../../../node-modules/uview-plus/components/u-form-item/u-form-item.js";
const _easycom_u_button = () => "../../../../../node-modules/uview-plus/components/u-button/u-button.js";
const _easycom_u_form = () => "../../../../../node-modules/uview-plus/components/u-form/u-form.js";
if (!Math) {
  (_easycom_u_textarea + _easycom_u_form_item + _easycom_u_button + _easycom_u_form)();
}
const _sfc_main = {
  __name: "Feedback",
  setup(__props) {
    const feedbackContent = common_vendor.ref("");
    const submitFeedback = () => {
      if (feedbackContent.value.trim() === "") {
        common_vendor.index.showToast({
          title: "反馈内容不能为空",
          icon: "none"
        });
        return;
      }
      console.log("反馈内容:", feedbackContent.value);
      feedbackContent.value = "";
      common_vendor.index.showToast({
        title: "反馈已提交",
        icon: "success"
      });
    };
    return (_ctx, _cache) => {
      return {
        a: common_vendor.o(($event) => feedbackContent.value = $event),
        b: common_vendor.p({
          placeholder: "您在使用过程中有什么不满意或者需要改进的地方，请在这里告诉我们",
          maxlength: "300",
          modelValue: feedbackContent.value
        }),
        c: common_vendor.p({
          label: "意见反馈"
        }),
        d: common_vendor.t(feedbackContent.value.length),
        e: common_vendor.p({
          type: "primary",
          ["form-type"]: "submit"
        }),
        f: common_vendor.o(submitFeedback)
      };
    };
  }
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-04a097e1"]]);
wx.createPage(MiniProgramPage);
